<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>分享管理</title>
	<%@ include file="/view/common/tags.jsp"%>
</head>
<body>
<section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-body">
						<h5 class="shareSetTitle">积分设置</h5>
						<sk:form cssClass="form-horizontal" action="/shareConfig/save" method="post" id="saveObject" >
	                        <div class="shareSetBox">
	                            <div class="col-sm-4">
	                               <dl class="setContents">
	                                  <dt>通用设置</dt>
	                                  <dd><label>注册送</label><input type="number" id="registerGiveNumPer" name="registerGiveNumPer" value="${tlzsShareConfig.registerGiveNumPer}" min="0" max="" onblur="checkNum1();"/>次</dd>
	                                  <dd><label>单日获得上限</label><input type="number" id="dayGetMaxNum" name="dayGetMaxNum" value="${tlzsShareConfig.dayGetMaxNum}" min="0" max="" onblur="checkNum2();"/>次</dd>
	                                  <dd><label>单日使用上限</label><input type="number" id="dayUseMaxNum" name="dayUseMaxNum" value="${tlzsShareConfig.dayUseMaxNum}" min="0" max=""/>次</dd>
	                               </dl>
	                            </div>
	                            <div class="col-sm-4">
	                                <dl class="setContents">
	                                  <dt>分享人</dt>
	                                  <dd><label>单次分享送</label><input type="number" id="shareGetNumPer" name="shareGetNumPer" value="${tlzsShareConfig.shareGetNumPer}" min="0" max=""/>次</dd>
	                                  <dd><label>被分享人注册送分享人</label><input type="number" id="sharePrentRegisterGetNum" name="sharePrentRegisterGetNum" value="${tlzsShareConfig.sharePrentRegisterGetNum}" min="0" max=""/>次</dd>
	                                  <dd><label>被分享人消费一单送分享人</label><input type="number" id="sharePrentPayGetNum" name="sharePrentPayGetNum" value="${tlzsShareConfig.sharePrentPayGetNum}" min="0" max=""/>次</dd>
	                               </dl>
	                            </div>
	                            <div class="col-sm-4">
	                               <dl class="setContents">
	                                  <dt>被分享人</dt>
	                                  <dd><label>被分享人注册送</label><input type="number" id="shareSonRegisterGetNum" name="shareSonRegisterGetNum" value="${tlzsShareConfig.shareSonRegisterGetNum}" min="0" max=""/>次</dd>
	                                  <dd><label>被分享人消费一单送</label><input type="number" id="shareSonPayGetNum" name="shareSonPayGetNum" value="${tlzsShareConfig.shareSonPayGetNum}" min="0" max=""/>次</dd>
	                               </dl>
	                            </div>
	                        </div>
	                        <input type="hidden" name="rowId" id="rowId" value="${tlzsShareConfig.rowId}"/>
	                        <sk:button type="button" rightKey="20170816153456" _class="btn btn-primary shareSetBtn" onclick="add()">保  存</sk:button></p>
	                        <input type="hidden" id="isReCommit" value="0">
                    	</sk:form>
                    </div>
            	</div>
           	</div>
		</div>
</section>
<%@ include file="/view/common/footer.jsp"%>
</body>
<script type="text/javascript" src="${ctx}/view/js/share/shareConfig.js"></script>
<script>
	// 提示信息
	var msgg='<%=request.getAttribute("msg")%>';
	if (msgg && msgg!=null && msgg!='null') {
		  layer.msg(msgg);
	}
</script>
</html>
